//
//  stdThread.hpp
//  learnC++
//
//  Created by liuzhibing on 2018/7/18.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#ifndef stdThread_hpp
#define stdThread_hpp

#include <stdio.h>
#include <iostream>
#include <thread>
#include <pthread.h>
#include <unistd.h>

class ThreadClass {
    
    
public:
    
    ThreadClass();
    
    ~ThreadClass();
    
    void creatThread();
    
    void creatP_thread();
    //成员函数第一个参数永远是this，static的就不是，所以需要加static
    static void *printSomethig(void *param);
    
private:
    pthread_t m_id;
    
};




#endif /* stdThread_hpp */
